package com.yu1996.gulimall.gulimall.auth.feign;

import com.yu1996.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("gulimall-third-party")
public interface ThirdPartFeignService {

  @GetMapping("/sms/sendcode")
  @ResponseBody
  R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
